feat(miner): add governor event ledger schema and writer - #2795
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2795 +/- ##
=======================================
Coverage 96.22% 96.22%
=======================================
Files 255 256 +1
Lines 27998 28005 +7
Branches 10174 10176 +2
=======================================
+ Hits 26941 26948 +7
Misses 433 433
Partials 624 624
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-03 22:04:15 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
6ba76f2 to
4b5502b
Compare
02ad0de to
7eab594
Compare
1754020 to
bd2c16c
Compare
Exercise non-string field rejection, null/array payloads, default singleton helpers, and repo-filter validation so patch coverage clears the 99% gate. Co-authored-by: Cursor <cursoragent@cursor.com>
…echeck Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ch gate Co-authored-by: Cursor <cursoragent@cursor.com>
bd2c16c to
f4a28a2
Compare
…util import (#2855) Two independently-merged PRs (#2787, #2795) landed a build-breaking state on main: a spliced-in export block ate the opening brace of the adjacent contributor-fit re-export (TS1005/TS1109), and governor-ledger.ts imports node:util under this package's types:[] tsconfig, which never resolves the module's type declarations. Both broke `tsc --noEmit` and `build:miner` for every contributor. Replaced isDeepStrictEqual with a small local structural-equality check scoped to the JSON-safe values this one call site actually compares.
Summary
@jsonbored/gittensory-enginewith a fixed decision vocabulary.@jsonbored/gittensory-minermirroring the existing event-ledger pattern.Closes #2328.
Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.md.Validation
npm run test:cilocally — Node.js is not installed on the contributor machine; CI will run the full gate on push.Safety
UI Evidence
Not applicable — engine + miner package only.
Notes
src/selfhost/audit.tsstructured-event shape and the minerevent-ledger.jslocal-store pattern.